Java EE Development with Eclipse Second Edition by Kulkarni Ram
Author: Kulkarni, Ram , Date: August 25, 2017
, Views: 164
Start Tomcat in the debug mode, and run listCourses.jsp in the Debug mode. Because we have put in the Thread.sleep statements, the request will take time. Go to the Debug view where the threads and stack frames are displayed. Click on the first node under the Tomcat debug configuration node and select the Suspend option, as shown in the following screenshot:
Figure 6.15 Suspend program execution
The debugger pauses the execution of all threads in the program. You can then see the status of each thread by expanding the thread nodes. You will find one of the threads executing the CourseDAO.getCourse method and the statement that it was executing before being suspended:
Figure 6.16 Status of suspended threads
Copyright Disclaimer:
This site does not store any files on its server. We only index and link
to content provided by other sites. Please contact the content providers
to delete copyright contents if any and email us, we'll remove relevant
links or contents immediately.